Fixed an issue where wdns would fail because of the use of returns instead of exits