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