catching some exceptions in irc.py