Add prototypical error/exception handling to MPI