Make open return {error,_} tuple on bad hostname