Fixed destruction of JVM

I have no idea.