Added API method to close open modals.