Fix JVM exit problem.