!errorIgnore to catch ANY error?

Try this solution: Occasionally getting "No tab with id:" error - #7 by trexem

Does this work for you? If not, do you have a test case? Does it happen when you run the macro from the command line?