Fix for closing cache connection early when needed.