There's a plugin called TurnOffCTM.
Not sure if it's updated, been a while since I used it (only use combat routines now, which doesn't enable CTM).
But you can configure it to turn off click to move when you click Stop or when you exit the bot completely.