Try cancelling the task first, then do final dematerialisation