Prevent irc crash when client is quit with unexpected.