Error handling in resume file reading