[slurm] Lower scope of exception catch (#4021)
[slurm] Lower scope of exception catch (#4021)

* Lower scope of except catch

* Cleanup
facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI