code: def close(self):
          
          while self._remote_hives:
              hive = self._remote_hives.popitem()[1]
              try:
                  hive.close()
              except Exception:
                  try:
                      e = sys.exc_info()[1]
                      msg = "Cannot close registry hive handle %s, reason: %s"
                      msg %= (hive.value, str(e))
                      warnings.warn(msg)
                  except Exception:
                      pass
docs: Closes all open connections to the remote Registry.
  
          No exceptions are raised, even if an error occurs.
  
          This method has no effect when opening the local Registry.
  
          The remote Registry will still be accessible after calling this method
          (new connections will be opened automatically on access).