code: public void destroy() {
          if (mApplicationDepot != null) {
              mLog.info("Destroying ApplicationDepot");
              mApplicationDepot.destroy();
          }
          for (Iterator i = getPlugins().values().iterator(); i.hasNext(); )
              ((Plugin) i.next()).destroy();
      }
docs: Destroys the TeaServlet and the user's application.