public void contextDestroyed(ServletContextEvent event) {

        try {
            // destroy the OpenCms instance
            OpenCmsCore.getInstance().shutDown();
            shutDownSqlDrivers();
        } catch (CmsInitException e) {
            if (e.isNewError()) {
                LOG.error(e.getLocalizedMessage(), e);
            }
        } catch (Throwable t) {
            // make sure all other errors are displayed in the OpenCms log
            LOG.error(Messages.get().getBundle().key(Messages.LOG_ERROR_GENERIC_0), t);
        }
    }
public void contextDestroyed ( ServletContextEvent event ) { try { OpenCmsCore . getInstance ( ) . shutDown ( ) ; shutDownSqlDrivers ( ) ; } catch ( CmsInitException e ) { if ( e . isNewError ( ) ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } } catch ( Throwable t ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_ERROR_GENERIC_0 ) , t ) ; } }
@see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent)