code: def close(self):
          
  
          if not (yield from super().close()):
              return False
  
          nio = self._ethernet_adapter.get_nio(0)
          if isinstance(nio, NIOUDP):
              self.manager.port_manager.release_udp_port(nio.lport, self._project)
  
          if self._local_udp_tunnel:
              self.manager.port_manager.release_udp_port(self._local_udp_tunnel[0].lport, self._project)
              self.manager.port_manager.release_udp_port(self._local_udp_tunnel[1].lport, self._project)
              self._local_udp_tunnel = None
  
          yield from self._stop_ubridge()
  
          if self.is_running():
              self._terminate_process()
  
          return True
docs: Closes this VPCS VM.