code: def handle_error(self, exc=None):
      
      if exc:
        NailgunProtocol.send_stderr(self.request, traceback.format_exc())
      failure_code = 1
      NailgunProtocol.send_exit_with_code(self.request, failure_code)
docs: Error handler for failed calls to handle().