Fixed destruction of JVM

Ditto.