understanding dog behavior at end of life