What about a local of the stop button ?
The problem is that the mechanical action can not be latched anymore.
but outside the while (after the while I mean)
you can reset this by writing another local var of the stop button
greetings from the Netherlands