Yes, I'm aware of this and it can or cannot occurs depending on the situations.
What is the cause?
To be able to STOP the running script, parser must exit from all nested levels of whatever structure.
To do so, I need to trap a sort of errolevel at every internal loop and/or situation.
I already did it for many situations but in some other not.
So I will continue to check thanks to examples like your that is enough simple to try to catch the problem.