Be more graceful after a KeyboardInterrupt
And gracefully exit out of cmdloop on ctrl+c