this is not needed anymore because the grid manager is no longer a singleton and the grid is thus is always destructed before MPI_Finalize() is called.