Capture interrupts (CTRL-C) and exit gracefully.