code: public void shutdown() {
  		for (ShutdownListener shutdownListener : shutdownListeners) {
  			try {
  				shutdownListener.shutdown();
  			} catch(Exception e) {
  				LOGGER.severe("failed shutdown"+e.getMessage());
  			}
  		}
  	}
docs: notify all registered ShutdownListener objects that the ServletContext is
  being destroyed.