Only cleanup the stream lazily.