stop logging at end