This check is so we'll only log exceptions. Lots of other ChannelEvents can get sent through (e.g. channel bound, channel closed, channel connected, message written) and we don't want to log all these (at least not for now).