Called before the Window closes, to clean some stuff
Source position: MUIClass.Base.pas line 81
protected procedure TMUIRootClass.BeforeCloseWindow; virtual;