Fix bug with unclosed manifest file.