Switched from 'finish' to 'close' event on streamWriter when downloading.