Gracefully shutdown on CTRL-C.