Conditional MPI_Finalize in example

MPI_Finalize in main() should only be called if it MPI_Init was called
locally (i.e. not by GASNet in the case of the MPI conduit).