Use the previous commit on returning success from each task execution function, and implement handling of errors in the main loop. Add a script with which this is visible using Custom_Commands.
The repeatCount property is useless: it would be enough to specify the same XML multiple times to achieve the same thing.