How can I prevent a server from trying to establish a connection with
another server that is no longer in the tree?

Thanks.