I\'m working on a python script that starts several processes and database connections. Every now and then I want to kill the script with a Ctrl+C sign
You can handle CTRL+C by catching the KeyboardInterrupt exception. You can implement any clean-up code in the exception handler.
KeyboardInterrupt