public function __destruct() { if (isset($this->_source)) { $this->_source->close(); } parent::__destruct(); }