String msg = "SIGNAL received. Shutting down.";
LOG.info(msg);
finalActivityWriter.write(new Activity(msg, Main.class));
GracefulShutdown shutdown = injector.getInstance(GracefulShutdown.class);
shutdown.runWithoutExit();
finalServiceManager.stopAsync().awaitStopped();
}
});
// Register this node.