GraphStorage: added missing close and copyTo for nameIndex