def release(self, server):
        """
        Release a server (proxy).

        server: :class:`OpenMDAO_Proxy`
            Server to be released.
        """
        with self._lock:
            try:
                host = self._deployed_servers[id(server)][0]
            except __HOLE__:
                self._logger.error('server %r not found', server)
                return
            del self._deployed_servers[id(server)]

        host.allocated_cpus -= 1
        try:
            host.allocator.release(server)
        except Exception as exc:
            self._logger.error("Can't release %r: %r", server, exc)
        server._close.cancel()
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ClusterAllocator.release