Flushing pending messages when the notification is clicked or closed or unfocused (this is an ack from the user)