code: def clientDisconnected(self, proto):
          
          for rule_id in proto.matchRules:
              self.router.delMatch(rule_id)
  
          for busName in proto.busNames.keys():
              self.dbus_ReleaseName(busName, proto.uniqueName)
  
          if proto.uniqueName:
              del self.clients[proto.uniqueName]
docs: Called when a client disconnects from the bus