You did everything correctly, in this day and age.
I guess where I grew up, we must have been lucky. Most people would give us candy bars, but we also went to a house where the people gave out pop corn, that was still warm from their popper with butter on top

. Another house served us scoops of ice cream in small cups. The father in another house worked at the big wholesale fruit exchange in Boston, and he'd bring home cases of apples, so we'd all grab an apple from that house. Other people would give us small bags of mixed candy with "loose" candy corn, hard candies, and licorice sticks. None of the above ever had anything wrong with it, and we never gave it a second thought. Sigh . . . memories.