rawdata-downloader: avoid race condition on quit