Prevent setting result/exception after cancellation