`` they wanted to , my grannie said , and took him to trial for treason , but in the end , they shut him up in a prison instead-but the gold went to his tenants , and so they lived through the famine , '' she ended cheerfully , obviously regarding this as the happy ending .