OP might want it to error so that it doesn't do the following command but still wants it to restart. I've been looking forever for this solution and the best I could find was having to use javascript or something like that with the imacro. It's a little to advanced for me so I just settled for ignore error. There is an EVAL command that you can use in imacro. So that may possibly help but that's written in javascript, so once again you have to find out how that is written.
Edit: after rereading this may not be the case. Does it say what error you're having?