It can be a smart idea to catch and re-elevate KeyboardInterrupts, so that you could still kill the program employing Ctrl-C. Logging is exterior the scope on the dilemma, but a very good possibility is logging. Documentation for the sys and traceback modules.
How to Increase the s