I have some static classes in my application. When I run the application, stop debugging and restart I notice that these variables stay in memory! So when the application terminates they are left behind and are reattached to the next instance of the application. This produces really crazy results as you'd expect.
Can you programatically tell a static variable to destroy itself when the application terminates?