Node failure blocks Java client

Hello,
I production we may not rebalance once you one node fails or it may take time, during this time java client is not responding.How we can can handle in this case.
I am using java-clinet 1.4.12 with 2 node.