Capture URLErrors in get_server to avoid ugly stack dumps.