Enhanced error handling / reporting in grade_system