This commit is a "cherry-pick" by hand of the two commits in ompi/master
AKA the trunk from Devedar. This contains commits:

cbb3e95
8dfed1c

from the trunk. This fixes the OSHMEM global exit when launched under srun.
Merge pull request #43 from jladd-mlnx/topic/globalexit_srun_fix

Fix the application abort routine so we actually abort