Fix bug when quitting with ctrl+Q and the window did not get to the systray yet
Add a way to hide the main window on startup

This is useful when you want to start this app when you login.