When a bank accepts and you cannot close...

When a lender accepts a SS do they then stop the foreclosure, or will it still be scheduled to sell at the sherrifs sale?

Meaning, if the bank accepts and I do not close in the time allotted, then the property continues to be foreclosed upon as if nothing has changed?

Could a seller then try and sue you for non-performance? If so, what type of clause would you use to avoid the possibility of this?

Thanks