Ending badly after Ctrl-C on black background