Looping processes don't terminate

I'm running offline version of MicroStudio.

Windows. Default Settings, but JavaScript.

If I write a program that gets in a dead loop the program will stop responding (this is OK) but corresponding process won't die if I close the program. I think a similar problem exists for long loops.