Fix error handling on resume file reading