Depending on the specific problem, there is no general method.
However, using goto is not a big deal...especially when jumping out of a deep and deep loop, I have not found a simpler method than goto.
However, I don't know how to do it in the actual methodology.I am also having a headache on this issue recently. I hope everyone can provide some ideas.