properly quit irc after sending failure/success

The irc plugin doesn't properly quit after sending a success/failure message, and the connection stays alive (and idle) forever, building up the number of bots in the channel.

This PR makes the bot quit on a success/failure message to fix this.