Better error messages when NMControl or namecoind wasn't reachable.

Fixes https://github.com/namecoin/nmcontrol/issues/27 .  Reviewers should verify that there aren't any unhandled exceptions relating to the RPC client.  (I'm not seeing any issues with DNS requests or getIp4, but it's plausible that I missed something.)