I've taken my daughter, who's five, to two wakes and to the cemetery. I tell her that death is part of the life cycle, and I remain calm in doing so.
So the more they are exposed to these life changes, the better off they'll be in learning how to deal. In Italy, children play in cemeteries b/c they're absolutely beautiful - if you can get past the "morbid" part. And for what it's worth, my daughter loves "visiting" her relatives who have passed away b/c she thinks the headstones are pretty!
In your case, your child is 2. So he'll understand very little. You'll most likely have to "contain" him instead of worrying about whether or not he'll be upset by it all b/c he won't really understand the situation.
You can only shelter them for so long, I say, as they're very likely to experience a traumatic situation at some point in childhood. And all you can do is talk them through it in a loving, calm way.
truly sorry for your loss