then the purchaser, licensee, or lessee may treat the rejection as a termination of the contract, license agreement, or lease, or alternatively, the purchaser, licensee, or lessee may remain in possession in which circumstance the purchaser, licensee, or lessee shall continue to perform all obligations arising thereunder as and when they may fall due, but may offset against any payments any damages occurring on account of the rejection after it occurs. The purchaser of real property in such a circumstance is entitled to receive from the receiver any deed or any other instrument of conveyance which the debtor is obligated to deliver under the executory contract when the purchaser becomes entitled to receive it, and the deed or instrument has the same force and effect as if given by the person. A purchaser, licensee, or lessee who elects to remain in possession under the terms of this subsection has no rights against the receiver on account of any damages arising from the receiver's rejection except as expressly provided for by this subsection. A purchaser of real property who elects to treat rejection of an executory contract as a termination has a lien against the interest in that real property of the debtor for the recovery of any portion of the purchase price that the purchaser has paid.
§ 515.585, RSMo