Using the "New Rule" and creating a subflow that specifically handles this would be my recommendation, then you can capture the error in the subflow to keep track of when and where the issue occurs often:
Main Subflow:

"Close_Everything" Subflow:

This subflow would capture the error produced by the On Block Error action, allowing you to maybe keep a list and see the common error it runs into over time. Be sure to set the Clear Error option so it only records the most recent error.
Most importantly is structuring the On Block Error:

It's configured to Go back to the beginning if it finds an error. But it will run the subflow first, once the subflow is complete it will return to the top of the block.
You can wrap this action in some sort of Loop as well to have it run when an action doesn't find an error.