actually end the stream