OP, reading about your beloved pet is sad enough, but the tail wagging part brought me to tears instantly.
It perfectly illustrates how much our dogs love us until the very end.
God bless you and your family for having had many pets throughout the years and caring so dearly for them. And God bless your dog at the rainbow bridge, where he will be wagging his tail when you meet again one day.