Fix the application abort routine so we actually abort

AKA the trunk from Devedar. This contains commits:

open-mpi/ompi@cbb3e95
open-mpi/ompi@8dfed1c

from the trunk. This fixes the OSHMEM global exit when launched under srun.