added shutdown safety to hazelcast state tracker