And then he stays on throughout the war years and into the nervous armistice that follows the British surrender at Yorktown in order to secure a lasting peace with Great Britain, which is the Treaty of Paris of 1783.