Fixed a bug where TEMBIRGui crashes if you close the UI without loading a file.