def close(self): self.closed = True _pyrpc.fini_client(self.id)
def __del__(self): if not self.closed: _pyrpc.fini_client(self.id)