But to solve your problem of failed guiding aborting your image capture sequence, I believe the usual approach is to put the sequence into the scheduler, and tell the scheduler to keep looping the sequence. Then if the sequence fails because of guiding failure, it will be restarted.