platform-core/cassandra-connector/src/main/java/org/sunbird/cassandra/CassandraConnector.java
private static void registerShutdownHook() {
        Runtime.getRuntime().addShutdownHook(new Thread() {
            @Override
            public void run() {
                TelemetryManager.log("Shutting down Cassandra connector session");
                CassandraConnector.close();
            }
        });
    }
/**
	 * Register JVM shutdown hook to close cassandra open session.
	 */
Register JVM shutdown hook to close cassandra open session.
Register JVM shutdown hook to close cassandra open session .
private static void registerShutdownHook() {
        Runtime.getRuntime().addShutdownHook(new Thread() {
            @Override
            public void run() {
                TelemetryManager.log("Shutting down Cassandra connector session");
                CassandraConnector.close();
            }
        });
    }
private static void registerShutdownHook ( ) { Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { @ Override public void run ( ) { TelemetryManager . log ( "Shutting down Cassandra connector session" ) ; CassandraConnector . close ( ) ; } } ) ; }
Register JVM shutdown hook to close cassandra open session.
Register JVM shutdown hook to close cassandra open session .