Added support fast switching in case of dying host

If one of the servers in the cluster dies, the client will not be able to fulfill any request.
To solve this problem you need to change your environment, which takes time.
I wrote a mechanism to quickly switch to another host in the same session.
So the request will not be lost and the client will not notice anything.

Please accept my changes.