Shouldn't we be checking the return code from `get_origin_host`?