Post-shutdown cleanup.