docs: def connect(self):
          """
          Connect socket to server
          """
          try:
              self.sock.connect((self.host, self.port))
              return self.sock
          except socket.error as ex:
              logging.error('Exception while connecting socket on %s:%s - Error %s' % (self.host, self.port, ex))
              raise
          except Exception as ex:
              logging.exception('Exception while connecting socket on %s:%s - Error %s' % (self.host, self.port, ex))
              raise