Handle uncaught exceptions 

Should accomplish #76. Passes makecheck on my machine. As noted and discussed in #76, this is currently accomplished using a global communicator (MPI_COMM_WORLD).