Added exception handling for the SubjectLoader