Changes to end of download

Download ends when decryption is done, not when file is completely
downloaded.