Add cancelation support to continuations.