If debug-error is turned on, re-raise errors from batch runs.