Fixed a bug in failover manager impl to ensure we retry if it's a
transport exception but throw it if it's non transport error like
authentication failure.
We need to notify failover is complete before we close the connection.