writing file only after thread has stopped
Merge branch 'bug-15087-GlobalTrackingPopup'