logger cleanup