Exactly What @Gunmansaid.
The original way to stop a script is stop();
The only thing you have to do now is use complete() instead;
If there is a next script in queue it will launch the next task, if it's the last one in queue, the queue will stop() instead