> Instead I recommended a complicated flag based system that was probably unnecessary.
That's the trigger for me: after more than one flag and the complex states involved, I may refactor the code using goto because it can actually be a cleaner solution. Programmers need to be less dogmatic about this case.