public void onStop(GruntProcess gruntProcess,GruntRunnerConfiguration gruntRunnerConfiguration){
  if (gruntRunnerConfiguration != null) {
    portService.release(gruntRunnerConfiguration.getHttpPort());
    portService.release(gruntRunnerConfiguration.getLiveReloadPort());
    RunRequest runRequest=gruntRunnerConfiguration.getRequest();
    String projectName=runRequest.getProject();
    String workspace=runRequest.getWorkspace();
    projectEventService.removeListener(workspace,projectName,gruntProcess);
  }
}

public void onStop ( GruntProcess gruntProcess , GruntRunnerConfiguration gruntRunnerConfiguration ) { if ( gruntRunnerConfiguration != null ) { portService . release ( gruntRunnerConfiguration . getHttpPort ( ) ) ; portService . release ( gruntRunnerConfiguration . getLiveReloadPort ( ) ) ; RunRequest runRequest = gruntRunnerConfiguration . getRequest ( ) ; String projectName = runRequest . getProject ( ) ; String workspace = runRequest . getWorkspace ( ) ; projectEventService . removeListener ( workspace , projectName , gruntProcess ) ; } }
callback used when the process is being stopped .
