In load_file(), remember the error reason and fclose()