listen error event from irc.js so that it no more crash