Quit condition for file download