To deal with exceptions in the cache