Also catch SocketErrors when attempting to resolv a node address

Fixes #263