Fix issue of code to peek at the index header not closing the FILE object, which in turn caused SQLite3 modification attempts to fail as READ ONLY.