fix close on download complete