code: def run (self):
          
          try:
              self.run_checked()
          except KeyboardInterrupt:
              thread.interrupt_main()
          except Exception:
              self.internal_error()
docs: Handle keyboard interrupt and other errors.