Close the notification when the window is focused, rather than requiring the user to close it