Cleanup xref table at exit of program (not after check), or when new file