Use Duplex stream, instead of Transform

Transform stream closes on both ends, when source stream is finishes