It really is a good idea to capture and re-elevate KeyboardInterrupts, to be able to however kill the program employing Ctrl-C. Logging is exterior the scope of your question, but a good alternative is logging. Documentation to the sys and traceback modules. Theres a superb probable for getting a lawful https://helpmehigh.com/