Make task cancellation cljs-ajax friendly.