main: cleanup after download