Add shutdownhook and simple service.