During shutdown, attempt to cancel() a task 2x is fixed