Properly handling the close event in Qt

This fixes the issue with closing the window, clicking back and yet
closing the application anyways.

Issue #23
Restoring quit-capabilities to File->quit

Updates issue #23