Make MPI_Finalize the last instruction executed

MPI Finalize should be the very last instruction executed before the final return