code: private static void cancelDestroyService() {
          Thread thread = DESTROY_THREAD;
          if (thread != null) {
              DESTROY_THREAD = null;
              thread.interrupt();
          }
      }
docs: Cancel Destroy Service