Background session completion
A large file is downloading through a background URLSession and the app gets terminated completely (by the system, not a swipe up). When the download finishes, what exactly has to happen in the app, in what order, so you don't lose the file?