logger cleanup in controllers