public void abort(){
  Process nextSubProcess=subProcess;
  subProcess=null;
  if (nextSubProcess != null) {
    nextSubProcess.destroy();
  }
}

public void abort ( ) { Process nextSubProcess = subProcess ; subProcess = null ; if ( nextSubProcess != null ) { nextSubProcess . destroy ( ) ; } }
tries to abort the currently running process .
