rewritten: handling of paused/closed/transmitted-Flag in logging file