public function __destruct() { if (isset($this->__client)) { $this->__client->unref($this->__java); } }