code: public synchronized void shutdown() {
          checkIsRunning();
          try {
              beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION);
          } finally {
              discard(id);
              // Destroy all the dependent beans correctly
              creationalContext.release();
              beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION);
              bootstrap.shutdown();
              WeldSELogger.LOG.weldContainerShutdown(id);
          }
      }
docs: Shutdown the container.
  
  @see Weld#initialize()