public function onManagerStop($serv) { if (empty($this->client_pool)) { DistributedClient::getInstance()->removeuser($this->localip, 'Distributed'); print_r($this->localip . " have closed\n"); } }