I watched it on Christmas, before any spoilers got out, but I still spent the entire episode just waiting for Matthew to die. After Dan Stevens announced he was leaving, that was really the only way they were ever going to write off his character without getting rid of Mary.