If an accepted offer and agreement to purchase does not close, a broker may not disburse any funds held in trust, relative to such real estate transaction, except pursuant to a written instruction of all parties to the transaction or pursuant to a court order.
SDCL 36-21A-81