diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java b/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java index 3d5f7a0..e79b0fb 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java @@ -19,6 +19,7 @@ package de.staropensource.sosengine.base.logging; +import de.staropensource.sosengine.base.Engine; import de.staropensource.sosengine.base.EngineConfiguration; import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.events.EngineCrashEvent; @@ -146,11 +147,11 @@ public final class CrashHandler { // Send EngineCrash event new EngineCrashEvent().callEvent(); - // Shutdown JVM + // Shutdown (engine &) JVM if (EngineConfiguration.getInstance().isLoggerImmediateShutdown()) Runtime.getRuntime().halt(69); else - Runtime.getRuntime().exit(69); + Engine.getInstance().shutdown(69); } /**