[irc] handle socket.error