bfgminer-rpc: Catch error when server host fails to resolve to an IP
Merge commit '77e7990' into bfgminer-3.2.x