Only catch exceptions from the caching backend, not the function call.