private void startShutdownManager(final RexsterProperties properties) throws Exception {
final ShutdownManager shutdownManager = new ShutdownManager(properties);
//Register a shutdown hook
shutdownManager.registerShutdownListener(new ShutdownManager.ShutdownListener() {
public void shutdown() {
// shutdown grizzly/graphs
stop();
}
});