fix batch tasks error logging