public function closeClient() { if (!empty($this->client)) { $this->client->close(); $this->client = null; $this->client_incremental = 1; } }