add keyboard KeyboardInterrupt exception handler: when program terminates on Ctrl-C