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