public function close() { parent::close(); $this->closeWrite(); if (is_resource($this->pd)) { proc_close($this->pd); } }