It can be a smart idea to capture and re-raise KeyboardInterrupts, so that you can nevertheless eliminate This system working with Ctrl-C. Logging is outside the house the scope from the question, but a good choice is logging. Documentation for that sys and traceback modules. Should you go over by https://helpmehigh.com/