CacheManager should deregister its LifecycleListener when it's closed. 

(...Replaced checkIfNotNull() method with ValidationUtil.checkNotNull() to conform checkstyle max-method-count rule.)