@Override
        protected void serviceStop() throws Exception {
            if (jhsDTSecretManager != null) {
                jhsDTSecretManager.stopThreads();
            }
            super.serviceStop();
        }
Priority of the JobHistoryServer shutdown hook.
history-server/src/main/java/net/qihoo/hbox/jobhistory/JobHistoryServer.java