Dont try and disable the debug use it to recieve the passwords, and process them before they appear you can also stop the normal MSG windows ever existing for them as well by doing a momentary ignore of the nick, also the debuger alias can make a good method of regaining control. especially as it can sit in the alias'es and not the remotes, almost no one looks there for automated events.
Or
the debuger alias can set a flag that alows activation on each forthcoming event maybe using a time critical flag or flag value, if the flags are not set, then you know the /Debug has been reset by the owner of the bot, and you can shut down the script.