unlock the cache on failure