Close the file when we are done streaming

[#74057366]