title: Running JVM inside Windows C console app becomes zombie if debugging is stopped in the middle
body: <p>I wrote a C program that starts a JVM using JNI_CreateJavaVM. The program is a Windows console application (VC 2008). JNI version is 1.6.</p>
  
  <p>If I debug the program and then stop the debugging in the middle, before it reaches the call to DestroyJavaVM then the CMD.exe window remains open and I'm unable to close or kill it. If I look at the Task Manager the CMD window appears in the Applications list but there's no cmd.exe process in the processes view. There's no java process either.</p>
  
  <p>Any idea how to get rid of this zombie?</p>