code: def del_actor(self, actor):
          
          if _debug: TCPClientDirector._debug("del_actor %r", actor)
  
          del self.clients[actor.peer]
  
          # tell the ASE the client has gone away
          if self.serviceElement:
              self.sap_request(del_actor=actor)
  
          # see if it should be reconnected
          if actor.peer in self.reconnect:
              connect_task = FunctionTask(self.connect, actor.peer)
              connect_task.install_task(_time() + self.reconnect[actor.peer])
docs: Remove an actor when the socket is closed.