Log handler cleanup