I remember the issue in VB6 where when you performed Unload or some other function that would close the application, sometimes, if done incorrectly, it would only close the form and the application would still be running in memory. You would have to open up the task manager and end the process.

Normally, to close an application, I use Application.Exit. However, with my game, this doesn't seem to work. Sure, it exits the game, but it is still running in memory. This only happened around halfway through my game's progress and I have forget what has caused it.

Is there a more efficient way to close an application that does not leave it running in memory?