Stop leaking MPI resources.