Closes popup.
close()

Description

If a popup is open, it will be closed. If currently there are no open popups, no action will be taken. This method triggers onClose event.
To close the popup: