It can be a good idea to catch and re-elevate KeyboardInterrupts, so that you can however eliminate the program utilizing Ctrl-C. Logging is outside the house the scope of your concern, but an excellent solution is logging. Documentation for that sys and traceback modules. I'm wanting to compose a PowerShell https://helpmehigh.com/