CacheManager should deregister its LifecycleListener when it's closed. (Replaced checkIfNotNull() method with ValidationUtil.checkNotNull() to conform checkstyle max-method-count rule.)
Merge pull request #4347 from mdogan/cachemanager-close-fix

CacheManager should deregister its LifecycleListener when it's closed.