added sleep delay on connect error in allreduce