Look to see if KiX32.exe or WKiX32.exe is still in memory or not. THat is What EXIT will exit, not a DOS box. You need to look elsewhere for why you would have a lingering DOS box.

You should also rewrite the code to not use GOTOs.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.