method stopTask changed to stopJob.