public void handle(String target, Request serverRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        if (!target.equals("/shutdown") || !request.getMethod().equals("POST") || !secret.equals(request.getParameter("secret")))
            return;

        try {
            // You should probably do something clever with this if you handle a lot of transactions etc
            // BigIP fortunately handles sessions to my nodes, so I haven't put much effort into this.
            response.setStatus(SC_OK);
            PrintWriter out = response.getWriter();
            out.println("Shutting down");
            try { out.close();    } catch (Exception ignored) {}
            try { context.stop(); } catch (Exception ignored) {}
            try { server.stop();  } catch (Exception ignored) {}
        } catch (Exception ignored) {}
        System.exit(0);
    }