Fix DNS errors when connection fails
Merge pull request #55 from breach/fix-dns-fail

Review: Fix DNS errors when connection fails