Update to handle fs errors.