Improve error handling in fs-cache