void stopTask(String processName){
  trace("kill process: " + processName);
  Process p=tasks.remove(processName);
  if (p == null) {
    return;
  }
  p.destroy();
}

void stopTask ( String processName ) { trace ( "kill process: " + processName ) ; Process p = tasks . remove ( processName ) ; if ( p == null ) { return ; } p . destroy ( ) ; }
stop a running task .
