If, after a decree for sale, entered against a defendant in such case, he shall bring into court the principal and interest due, with costs, the proceedings in the suit shall be stayed, but the court shall enter a decree of foreclosure and sale, to be enforced by a further order of the court, upon a subsequent default in the payment of any portion or installment of the principal, or any interest thereafter to grow due.