Now could you please also show me how to download a file? Is there a way to automatically handle disconnects during the download process or do I have to do it in my code?