If the owner appears and pays all costs of the proceeding, and files a bond with sureties to be approved by the clerk in the full value of the property, to be ascertained by the court or, in vacation by the judge, conditioned that he will immediately abate said nuisance and prevent the same from being established or kept therein within a period of one year thereafter, the court or, in vacation the judge, may, if satisfied of his good faith, order the premises closed under the order of abatement to be delivered to said owner, and said order of abatement canceled so far as the same may relate to said property; and if said bond be given and costs therein paid before judgment and order of abatement, the action shall be thereby abated as to said building only. The release of the property under the provisions of this section shall not release it from any judgment, lien, penalty, or liability to which it may be subject by law.
SDCL 21-10-19