Main Window: catch SIGINT for proper exit

Main Window: catch SIGINT for proper exit