@SuppressWarnings("unchecked")
	public void contextDestroyed(ServletContextEvent sce) {
		WebContext<ServletContext> context = (WebContext<ServletContext>) container.component(container.contexts().get(Application.class));
		context.deassociate(sce.getServletContext());
		
		synchronized (Jaguar.class) {
			if (running()) {
				shutdown();
			}
		}
	}
@ SuppressWarnings ( "unchecked" ) public void contextDestroyed ( ServletContextEvent sce ) { WebContext < ServletContext > context = ( WebContext < ServletContext > ) container . component ( container . contexts ( ) . get ( Application . class ) ) ; context . deassociate ( sce . getServletContext ( ) ) ; synchronized ( Jaguar . class ) { if ( running ( ) ) { shutdown ( ) ; } } }
Shuts down the application in Web environment and deassociates the
current {@code ServletContext} from {@link Application} context.

@param sce The event the {@code ServletContext} is destroyed.