Ensure BufUtil.release() is called even if writeBytes() fails in writeAndRelease()