Terminate the stream and release its resources. If this has not been canceled this signals a normal completion of the stream.