When closing the window, also hide the application immediately (fixes #67)

This way, the application immediately resigns active status and another
application becomes focused. Notifications will then start posting
regularly since the application itself isn't active.