simplify setting result on thread cancellation