code: public synchronized void stop() {
      if (!mStopped) {
        mLoggingWorkerThread.interrupt();
        try {
          mLoggingWorkerThread.join();
        } catch (InterruptedException e) {
          Thread.currentThread().interrupt();
        } finally {
          mStopped = true;
          mLoggingWorkerThread = null;
          LOG.info("AsyncUserAccessAuditLogWriter thread stopped.");
        }
      }
    }
docs: Stops {@link AsyncUserAccessAuditLogWriter}.