[NO ISSUE] Avoid sleep, shutdown log manager on halt

Change-Id: I64749ffd98563099bd68926cd7ca0e697f066baf
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2485
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: abdullah alamoudi <bamousaa@gmail.com>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
index ec6587e..db5cd13 100644
--- a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
+++ b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/ExitUtil.java
@@ -74,15 +74,10 @@
         exit(status);
     }
 
-    @SuppressWarnings("squid:S2142") // catch interrupted
     public static void halt(int status) {
         LOGGER.fatal("JVM halting with status " + status + "; bye!", new Throwable("halt stacktrace"));
-        try {
-            // try to give time for the log to be emitted...
-            Thread.sleep(2000);
-        } catch (InterruptedException e) {
-            // ignore
-        }
+        // try to give time for the log to be emitted...
+        LogManager.shutdown();
         Runtime.getRuntime().halt(status);
     }