Made sure the stream is closed for reading a template manifest file.