fix client blocking on latch if fails to connect the cluster