Fix wierd dns.lookup issue for invalid domains.

This issue was perhaps isolated to VM environments, but was reproducible
enough on my current VM, that it seems good to fix.

Also upgrade the native-dns library to 0.7.0 (but this dns.lookup error
seems to be present in both versions of native-dns).
Improve stop process during tests to better deal with shutdown errors
Fix logging process due to yaml config changes.
Fix stopping the processes.