when a notification is closed, swallow the close event so that it does not close any modal that is open