pom.xml: Bumped version to 3.1.0-t2
Monitor.java: Changed failure status code used for handling canceled exams to -21.

Worker.java: Changed failure status code used for recording exceptions to -23.