 The emperor was grateful for his conduct in this affair, ordered the elector to rescind his ban, and made Werth a count.The last campaign of the war (1648) was uneventful, and shortly after its close he retired to live on the estates which he had bought in the course of his career, and on one of these, Benatek NE of Prague in Bohemia, a gift from the emperor, he died on 16 of January 1652.He was buried in the church of Nativity of the Virgin Mary in Benátky.