Catch UnknownHostExceptions nice and silently.