Fixed destruction of JVM

Which line are you referring to? I am not that familiar with the code