getMapVersion needs to close out file when done reading