Is there anyway I can make my script execute one of my functions when Ctrl+c is hit when the script is running?
Ctrl+c
Use the KeyboardInterrupt exception and call your function in the except block.
except