code: def close(self):
          
          if self.__sock:
              self.__sock.close()
              self.__sock = None
              return True
          else:
              return None
docs: Close TCP connection
  
          :returns: close status (True for close/None if already close)
          :rtype: bool or None