Prevent MessageBoxCloseEvent from being called when the message box is already hidden