Error handling: DGS for semesters

Added better error handling for semester.
See previous commits for more details.