sentences:  He was confined for a time in an asylum at Dumfries.Following his release, he was allowed by the Duke of Buccleuch to retire while retaining his cottage.He lived a quiet existence, occasionally lecturing in Hawick or the surrounding area, but largely focusing on improving his house and property, or his literary work.