updating task cancel api to remove old dispatch coordinator functionality and adding ability to cancel spawned tasks