If you want to participate buy a bag of candy, hand out and then donate the rest (or give extremely generous portions when you realize tot'ing is almost done and you still have some left
).
If you don't want to participate just turn off the lights and stay inside (or go somewhere). At least in my community we have found that more and more people are not participating in Halloween, either because they do so through bigger venues (church sponsored trunk or treat, etc) or because they simply don't want to. When I was a kid almost every door had their lights on, now it's definitely more lights off than on.