Added catch for KeyboardInterrupt to exit upon ^C