It's not necessary to sys.exit in onclose
Updating threshold presets limits when opening a dicom, analyze or inv3 file