def shutdown():
    """Called when FSLeyes exits normally (i.e. the user closes the window).
    Does some final clean-up before exiting.
    """
    import fsl.utils.settings as fslsettings
    fslsettings.delete('loadSaveOverlayDir')
