Dogs that have emotionally negative experiences often lie awake at night worrying about their problems.