public void onStop(Application app) {
    Logger.info("Stopping application...");
    if (_drElephantThread != null) {
      DrElephant.getInstance().kill();
      _drElephantThread.interrupt();
      try {
        _drElephantThread.join();
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
      }
    }
  }
This class manages all the global settings
app/Global.java