debug jobhistory when exceptions are thrown