code: public function close()
      {
          if (!$this->is_open) {
              return false;
          }
          $this->is_open = false;
  
          return fclose($this->handle);
      }
docs: Closes the socket preventing further reads. Cannot be reopened once closed.
  
  @return bool           True if successful.