Added gzclose to index file.