PMPI: Logging and cleaning.