code: protected void destroy() {
          String str = mProcess.toString();
          try {
              int i = str.indexOf("=") + 1;
              int j = str.indexOf("]");
              str = str.substring(i, j);
              int pid = Integer.parseInt(str);
              try {
                  android.os.Process.killProcess(pid);
              } catch (Exception e) {
                  try {
                      mProcess.destroy();
                  } catch (Exception ex) {
                      ex.printStackTrace();
                  }
              }
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
docs: Destroy