added retry if connection error or connection refused
Fixed issue in Error log for connection error.