Even well-trained pets can trigger defensive behavior.