save resume data when finishing a download