Taking medications to treat insomnia and anxiety increases mortality risk by 36 percent, according to a new study.