Missing last 8 bytes of file when downloading from HTTPS
See the question and my original answer on StackOverflowI would remove ClearContent, Clear, Flush and Close that should be useless.
Also the content type is incorrect, since it's an xls file, it should be "application/vnd.ms-excel".
And last, I would try not to delete the file too early to give a let the server send the file before you delete it.