This event is emitted when a modal dialog is starting to close.
Event listeners may call this method to prevent the modal from closing.