Remove temp file and map entry after download.