ISPN-3445 Only attempt to write to the channel if the error we're reporting is not an IO exception

https://issues.jboss.org/browse/ISPN-3445