diff --git a/dr_botzo/ircbot/bot.py b/dr_botzo/ircbot/bot.py index ede76e9..46ff879 100644 --- a/dr_botzo/ircbot/bot.py +++ b/dr_botzo/ircbot/bot.py @@ -492,8 +492,7 @@ class IRCBot(irc.client.SimpleIRCClient): del plugin del sys.modules[path] - self.disconnect("Shutting down...") - sys.exit() + self.die(msg="Shutting down...") class Channel(object):