I have this program that I made. It's not doing any multi-threaded stuff or creating any new process, or opening any new windows. After I start the program and click on the button that does some loops, when I click the "x" on the top right corner to close the window, I noticed in the task manager that the process is still running. When I run it at debug mode, I do the same thing and it is still going through the loop. Any idea why it's doing this? I've always thought closing the main window stops the process.