Support streams that write last chunk with end()