- private void applyStopHooks() {
- for (int i = stopHooks.size() - 1; i >= 0; i--) {
- try {
- stopHooks.get(i).run();
- } catch (Exception e) {
- log.error("Could not run shutdown hook #" + i);
- }
- }
- // Clean hanging Gogo shell thread
- new GogoShellKiller().start();
-
-// instance = null;
- }
+// private void applyStopHooks() {
+//// for (int i = stopHooks.size() - 1; i >= 0; i--) {
+//// try {
+//// stopHooks.get(i).run();
+//// } catch (Exception e) {
+//// log.error("Could not run shutdown hook #" + i);
+//// }
+//// }
+// // Clean hanging Gogo shell thread
+// new GogoShellKiller().start();
+//
+//// instance = null;
+// }