stopping the stream.