If a prisoner escapes by reason of the insufficiency of the jail, whereby the sheriff is made liable to a party at whose suit the prisoner was committed, or to whose use any forfeiture was adjudged against him, the county shall reimburse the amount recovered by such party of the sheriff on account of the escape.
Mass. Gen. Laws ch. 126, § 6