Major fix

- Adding `process` event listeners to deal with a potential socket error emitted from `stream.js` when exceeding system capacity