Close logger when stopping dht