All dialogs are now properly deleted.
Especial important for the mod dialog which creates all mods each time and did not delete them in all cases.