public void shutdown() {
        FunctionUtils.doAndHandle(__ -> {
            LOGGER.info("Shutting down Hazelcast instance [{}]", hazelcastInstance.getConfig().getInstanceName());
            hazelcastInstance.shutdown();
        });
    }
Make sure we shutdown HazelCast when the context is destroyed.
support/cas-server-support-hazelcast-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/HazelcastTicketRegistry.java