clear resources after download complete