What is happening?
Debug mode cannot stop the commands when the player loses 😮
What to do for now?
If you are in debug mode you can close the game by clicking the Send Close Request from the debug menu.
you can also press esc to close it.
This is the only way to prevent the commands from running, this bug will be fixed soon, you can also help me and create a Pull Request, I'll be happy 😄