Changed how canceled tasks are dealt with.