Fixed destruction of JVM