Updated the text
Handle errors gracefully, such as a failure to resolve a host name in case it is invalid.