Cleanup.
Fix broken log file retention logic.