Merge pull request #19 from ArseniyK/master

Main Window: catch SIGINT for proper exit.