Show better error message in case of bad network settings

Instead of just showing Error: getaddrinfo ENOTFOUND
this will show an error message to the user