distinguish irc_error from other errors (return code 3)
added a simple wrapper to keep reconnecting