Added error-check and retry if hadoop proxy cannot be opened.
Merge pull request #13 from rescale/socks-proxy-errors

Added error-check and retry if hadoop proxy cannot be opened.