Close logger when stopping dht

The dht did not close the logger, which was causing problems while unittesting on windows as it had a filelock on the pymdht.log file.