Change LineIO class to emit via nextTick()