code: def unregister_all(self):
          
          aliases = list(self._service_objects.keys())
          for alias in aliases:
              self.unregister(alias)
docs: Safely unregisters all active instances.
  
          Errors occurred here will be recorded but not raised.