def stop(self):
<EOL>while(True):<EOL><INDENT>try:<EOL><INDENT>mtd, args, name = self._queue[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>break<EOL><DEDENT>if(mtd == self._engine.endLoop):<EOL><INDENT>break<EOL><DEDENT>self._queue.pop(<NUM_LIT:0>)<EOL><DEDENT>self._driver.stop()<EOL>
Called by the engine to stop the current utterance and clear the queue
of commands.