This is to help disambiguating between the code that shuts down the stream completely and one that pauses/resumes the stream. (cherry picked from commit cd2a4de8)