 He was curator and assessor of the University of Edinburgh in 1859, and rector of the University of Aberdeen in 1860.The University of Edinburgh awarded him an honorary doctorate (LLD) in later life.He died at 3 Ainslie Place, on the Moray Estate in west Edinburgh, on 23 February 1870.