early work on reconnecting socket for irc client