I am using node js 8.* and it has new method `destroy` for Readable streams. https://nodejs.org/docs/latest-v8.x/api/stream.html#stream_readable_destroy_error The following is generating `premature close` error coming from `end-of-stream` module. ``` var pump = require('pump') var fs = require('fs') var source = fs.createReadStream('/dev/random') var dest = fs.createWriteStream('/dev/null') pump(source, dest, function(err) { console.log('pipe finished', err) }) setTimeout(function() { source.destroy(); }, 1000) ``` Any ideas?