Elasticsearch Transport Client fails to recovery connection after cluster restart

I tried client.transport.sniff true and false and get the same issue. Node not available. Works fine in 5.3.2 TransportClient.

List nodes = client.connectedNodes();

This is empty....