private static void closeSockets(HazelcastClientInstanceImpl client) {
final ClientConnectionManager connectionManager = client.getConnectionManager();
if (connectionManager != null) {
try {
connectionManager.shutdown();
} catch (Throwable ignored) {
EmptyStatement.ignore(ignored);
}
}
}