Add exception to failed jobs

Adds possibility to extract reason why job failed