Main Window: catch SIGINT for proper exit