proper error handlers for both client/irc sockets