Added except case to try/catch blocks for keyboard interrupt. CTRL-C was being captured,
so it couldn't be used to exit the script.