Something like this conceivably could also happen if you don't have permission to
use the gethost commands on your server.. this happened
to me recently :(
checking for null before chomp might be okay too? wouldn't hang
though, crash more like it I think.