@@ -0,0 +1,840 @@
+package org.pdxfinder.controllers;%0A%0Aimport org.springframework.beans.BeansException;%0Aimport org.springframework.context.ApplicationContext;%0Aimport org.springframework.context.ApplicationContextAware;%0Aimport org.springframework.context.ConfigurableApplicationContext;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.PostMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@RestController%0Apublic class ShutDownHook implements ApplicationContextAware %7B%0A%0A    private ApplicationContext context;%0A%0A    @PostMapping(%22/shutdown%22)%0A    public void shutdownContext() %7B%0A        ((ConfigurableApplicationContext) context).close();%0A    %7D%0A%0A    @Override%0A    public void setApplicationContext(ApplicationContext ctx) throws BeansException %7B%0A        this.context = ctx;%0A%0A    %7D%0A%7D

Add shut down hook for properly shutting down the admin app