Added exception handling for Ctrl-C interrupts, other uncaught errors