code: public synchronized void shutDown() {
  
          if (CmsLog.INIT.isInfoEnabled()) {
              CmsLog.INIT.info(
                  org.opencms.main.Messages.get().getBundle().key(
                      org.opencms.main.Messages.INIT_SHUTDOWN_START_1,
                      this.getClass().getName()));
          }
  
          // prevent new publish jobs are accepted
          m_shuttingDown = true;
  
          // if a job is currently running,
          // wait the specified amount of time,
          // then write an abort message to the report
          if (m_currentPublishThread != null) {
  
              // if a shutdown time is defined, wait  if a publish process is running
              if (m_publishQueueShutdowntime > 0) {
                  synchronized (this) {
                      try {
                          Thread.sleep(m_publishQueueShutdowntime * 1000);
                      } catch (InterruptedException exc) {
                          // ignore
                      }
                  }
              }
  
              if (m_currentPublishThread != null) {
                  CmsPublishJobInfoBean publishJob = m_currentPublishThread.getPublishJob();
                  try {
                      abortPublishJob(m_adminUserId, new CmsPublishJobEnqueued(publishJob), false);
                  } catch (CmsException e) {
                      if (LOG.isErrorEnabled()) {
                          LOG.error(e.getLocalizedMessage(), e);
                      }
                  }
              }
          }
  
          // write the log
          CmsDbContext dbc = getDbContext(null);
          try {
              m_driverManager.updateLog(dbc);
          } catch (CmsDataAccessException e) {
              if (LOG.isErrorEnabled()) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          } finally {
              dbc.clear();
          }
  
          if (CmsLog.INIT.isInfoEnabled()) {
              CmsLog.INIT.info(
                  org.opencms.staticexport.Messages.get().getBundle().key(
                      org.opencms.staticexport.Messages.INIT_SHUTDOWN_1,
                      this.getClass().getName()));
          }
      }
docs: Shuts down all this static export manager.<p>
  
  NOTE: this method may or may NOT be called (i.e. kill -9 in the stop script), if a system is stopped.<p>
  
  This is required since there may still be a thread running when the system is being shut down.<p>