Redesigned how cancellation unblocks a thread from internal