Main Window: catch SIGINT for proper exit
Merge pull request #19 from ArseniyK/master

Main Window: catch SIGINT for proper exit.