Exit more gracefully on ^C