Avoiding memory leaks when Elemental is finalized but did not initialize MPI and in NestedDissection