CacheManager should deregister its LifecycleListener when it's closed. 

(...Replaced checkIfNotNull() method with ValidationUtil.checkNotNull() to conform checkstyle max-method-count rule.)


Fixed a leak issue caused by #4333