Enhance BackgroundWorker sample with better threads tracking