Reset batch on error