To confirm, what this is trying to do is make sure the unloadui dialog appears from a backup in the event they choose to load from backup and then try to leave immediately without doing anything else.