handle irc disconnect (fixes #22), create/close alerts logic (fixes