pipe() after we add the event listener so that we don't emit entries after "end"