a resentment yet lingered that under the previous british government , the torture of slaves had been forbidden ; on the further outskirts of the town might yet be observed the barbaric custom of leaving the corpse of a hanged slave upon his gibbet , as an illustrative example to his fellows of the cost of disobedience .