Added KeyboardInterrupt exception.