[c10d] fix the unwanted reason (#120863)
Summary:
Addressing #120849. Current c10d treat a reason as a failure, hence give some unwanted false
postiive errors. This is a quick fix, but we need to revisit the error
handling logic
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120863
Approved by: https://github.com/kwen2501