By “stop” I mean this,
window is closed, but application not finish to exit
Does the program exit due to an error (crash) or does it continuously loop in some piece of code (hang)?
No crash, no continuously loop. I know it is very strange. Like as when you drive a car and if you finish drive to your home, you leave the car and go to house (program is closed correctly). But in this case you are still inside the car, you are not driving, you stay on the place (in front of your house) with engine turned off. You are not reach finish because you are still inside car. You don’t crash and no under loop (driving).