Replace Future<Boolean> in waitForConnectedAndHealthy with CountDownLatch