[#2052] Only raies OSError from deleteFile.