fix memory leak

DNS and Threadpool workers need to remove callback references when they
compete for GC