Do cleanup when downloading