george had been arrested at the command of the earl of sutherland , confined for days in a dungeon , before being sent in manacles back to inverness where he was given a lashing by one of lord loudoun 's regular warrant officers .