[#1568] Fix problem where an exception was fired after the channel was closed.

* Calling fireExceptionCaught(...) in this case was not correct as we failed writes which are outbound operations.
[#1570] ChunkedWriteHandler.discard(..) must not call fireExceptionCaught(...)
Merge remote-tracking branch upstream/$:{upbranch}