It is really a smart idea to catch and re-increase KeyboardInterrupts, to be able to continue to destroy the program employing Ctrl-C. Logging is exterior the scope of the query, but an excellent possibility is logging. Documentation for the sys and traceback modules. I am looking to publish a PowerShell https://helpmehigh.com/