dump before cleanup