Add contexts for exceptions in LocalCacheFile.

LocalCacheFile was not using addContext when errors occurred; this made it unclear where exception messages originated.