release cache in the finalizer