Print stack trace when a job throws an exception