private static void StopTask(Command cmd) { TaskProvider tp = new TaskProvider(); tp.Stop(cmd.TaskId); }