Log exceptions from gethostbyname.