irc: only warn about closing window when connected