protected function do_close()
 {
     if (isset($this->input) && $this->input) {
         $this->input->close();
         $this->input = null;
     }
     $this->close_socket();
 }
 protected function close_input()
 {
     $this->debug->debug_msg('closing input');
     if (!is_null($this->input)) {
         $this->input->close();
         $this->input = null;
     }
 }
 protected function close_input()
 {
     if ($this->debug) {
         MiscHelper::debug_msg('closing input');
     }
     if (!is_null($this->input)) {
         $this->input->close();
         $this->input = null;
     }
 }