Safely ends ncurses window on SIGINT