Set close on completion and switch to the window when it is downloading and see what you get when the window auto-closes.

(I didn't test this myself with a manual close, but I was also getting the error when switching windows whilst the download was in progress.)