Adding limit to handle with stream error in pipe

Fixes: 

```
stream.js:81
  throw er; // Unhandled stream error in pipe.
        ^
```