catch error when server is down / not responding

When the node is not responding, it throws error(113, 'No route to host'). We
should capture that and switch to next available NN
Merge pull request #110 from interskh/errno_no_route_to_host

Catch socket error when server is down / not responding