set StopTriggerAfterError to true when we encounter an error