A jailer or officer who, except as provided in the following section, voluntarily suffers a prisoner in his custody upon conviction or upon a charge of crime to escape shall suffer the punishment and penalties to which the prisoner whom he suffered to escape was sentenced or would be liable to suffer upon conviction of the crime wherewith he stood charged.
Mass. Gen. Laws ch. 268, § 18