Improving error handling in File Cache