protected function closeSecutity() { if (isset($this->_socket) && is_object($this->_socket)) { stream_socket_shutdown($this->_socket, STREAM_SHUT_WR); return true; } $this->_errorMessage = "No resource can to be close"; return false; }