Ensured that ByteBuf instances are released in all Stream implementations in the case where an error is reported
and the ByteBuf is not being passed back to the caller (who is then responsible for freeing it).

 JAVA-1577