Regression was introduced in 835b1801bc. We need to destroy all FileLoader instances before destroying the Downloader instance, because they hold pointers to it and call its methods in destructor if they need to cancel some MTP requests.
835b1801bc