If goods perish in the buyer’s custody during the seller’s option, what liability applies?

Khiyar al-Shart: Duration, Ownership, Rescission and Stipulated Attributes