Log module cleanup