It's a good idea to catch and re-raise KeyboardInterrupts, to be able to nonetheless destroy the program working with Ctrl-C. Logging is outside the house the scope of the question, but a great selection is logging. Documentation to the sys and traceback modules. It may be essential to notice that https://helpmehigh.com/