[#1294] Make sure ByteBuf is released once written to channel