Adding Devendar's solution for OSHMEM's global exit when applications are launched directly with srun.