Have stream emit 'close' rather than 'end' for sake of testing