I am not sure, but are you missing running System.Windows.Forms.Application:Exit().?
As a rule, on a multi .NET window session the first program in the stack has two lines that are run when the program has loaded and when it quits.
Once loaded you have the line:
When quitting make sure you run:
As a rule, on a multi .NET window session the first program in the stack has two lines that are run when the program has loaded and when it quits.
Once loaded you have the line:
Code:
WAIT-FOR System.Windows.Forms.Application:Run().
When quitting make sure you run:
Code:
System.Windows.Forms.Application:Exit().