No idea what you are talking about.
unfortunately, there's no way to stop a script that is running (which causes big headaches with loops and getting-inputs), but you can prevent scripts from running, using a simple if-check of your own custom 'game state/state' Attribute, but you got to craft such a system yourself and put it into your game. if you're a good programmer and know quest well, implementing it into the underlying coding would probably be best, so you don't have to do as much work manually on the surface instead.
Other than that, printing an error message can stop 50% of the problems, but please avoid kamikaze-ing/over-loading the program.
Quest is a great thing, by the way. But when I want to play in any kind of quest, I prefer the real one called Escape Room (like this one over here: https://komnata.co.uk/london/), where you and your team of friends have to solve a lot of different puzzles and riddles just to escape the room you're in. That's where you can show your team-work skills and take a lot of fun.