Copter: prevent log corruption during log creation