Resilient bonds between dogs and humans