HRCPP-7 Handle transport exceptions within the Codec

https://issues.jboss.org/browse/HRCPP-7