public function close() { if ($this->__client) { @$this->__client->close(); $this->__client = null; } }