scheduler patch allows termination of tasks, thanks niphlod