It'll only be the Emperor dying, i'd imagine he has successors. Taking Germany would not mean the end of the Holy Roman Empire.