We now use dns_dispatch_cancel() for this purpose. NOTE: The caller still has to track whether there are pending send or connect events in the dispatch or dispatch entry; later this should be moved into the dispatch module as well. Also removed some public dns_dispatch_*() API calls that are no longer used outside dispatch itself.