Merge: Add error instead of segfault on gethostbyname fail