[queso]: adding the work I have

At a stopping point because I don't have a good idea how to engineer this properly. Will update ticket.
[queso]: exact problem specified in ticket update.
[queso]: as per @roystgnr, using MPI_COMM_WORLD for global communicator
[queso]: after discussion, now tending towards swapping previous terminate with exit call
[queso]: in response to @dmcdougall 's comments, unindenting exit(1)

Yikes, terrible programming move on my part. Great catch by @dmcdougall. Too much python programming recently.
To adhere to a higher standard, I've added added explicit parenthesis to the statements.
Merge pull request #99 from nicholasmalaya/catch

Handle uncaught exceptions