code: def stop(self):
          
  
          try:
              # try to properly stop the hypervisor
              yield from self.send("hypervisor stop")
          except UbridgeError:
              pass
          try:
              if self._writer is not None:
                  yield from self._writer.drain()
                  self._writer.close()
          except OSError as e:
              log.debug("Stopping hypervisor {}:{} {}".format(self._host, self._port, e))
          self._reader = self._writer = None
docs: Stops this hypervisor (will no longer run).