Handle KeyboardInterrupt