I would expect a properly-designed file download method to be interruptible. So you need to interrupt the thread in which the download is being done, which should cancel the download (the method should throw an InterruptedException).
Once you have caught the exception from the downloading thread, you can then decide what to do, for example wait for a new file download to be submitted (i.e. not exit).