Shorten the stack traces of exceptions that occurred during the performance of a job

Fixes #45