Patch from Manav Bhatia:

* Moved finalize functions for slepc, petsc and MPI to the end of ~LibMeshInit
* Ensure that PerfLog is printed and cleared before the finalize functions.