Exit cleanly from Control-C