 As the French approached, Maximilian Francis left Bonn, as it turned out never to return, and his territories on the left bank of the Rhine eventually passed to France under the terms of the Treaty of Lunéville (1801).The Archbishop's court ceased to exist.Although Maximilian Francis still retained his territories on the right bank of the Rhine, including Münster and the Duchy of Westphalia, the Elector, grotesquely corpulent and plagued by ill health, took up residence in Vienna after the loss of his capital and remained there until his death at the age of 45, at Hetzendorf Palace in 1801.