Fixed destruction of JVM

Make sense. Was this code reviewed when it was added to Zorba?