Bug fix to stop recursion to run out of stack space on stream errors

events.js:117
      listeners[i].apply(this, args);
                   ^
RangeError: Maximum call stack size exceeded