@Override public boolean closeConnection(Connection<CL> connection) { try { connection.close(); return true; } catch (Exception e) { Logger.warn("Failed to close connection for host: " + host + " " + e.getMessage()); return false; } finally { numActiveConnections.decrementAndGet(); monitor.incConnectionClosed(host, connection.getLastException()); } }