code: private synchronized void disconnectVirtualSauceNodeFromGrid(HttpServletRequest req, HttpServletResponse resp)
              throws IOException {
          // Redirecting to login page if session is not found
          if (req.getSession(false) == null) {
              resp.sendRedirect(LoginServlet.class.getSimpleName());
              return;
          }
  
          String msg = "There is no sauce node running.";
          final SeLionSauceProxy proxy = (SeLionSauceProxy) getRegistry().getProxyById(PROXY_ID);
          if (proxy != null) {
              proxy.teardown();
              getRegistry().removeIfPresent(proxy);
              msg = "Sauce node shutdown successfully.";
          }
  
          registered = false;
          LOGGER.info(msg);
          ServletHelper.respondAsHtmlWithMessage(resp, formatForHtmlTemplate(msg));
      }
docs: /*
  Disconnects the virtual node from the hub