the best way to end a stream..