Setting up MPI applications to abort properly
when an exception is thrown.