ALM-636 change error flow in background jobs