Open up the screen editor and locate the Screen Unload Script replace with this and see how you go,
inst = mc.mcGetInstance()
local IsOpen = mc.mcProfileGetString(inst, 'TOffParams', 'ToffDialog', '0') -- Get the Value from the profile ini.
if (IsOpen == '1') then --The TouchOff dialog is open and we need to close it
mc.mcProfileWriteString(inst, 'TOffParams', 'ToffDialog', '0') -- this line has been added
Tframe:Close()
Tframe:Destroy()
end
DazTheGas