backport (sh002i): error handler in the post-connection subroutine that sends the error to the professor by email and also logs it to the apache log. resolves bug #1120, sort of.
Changed paths: