If they withdraw once the contracts has been signed then you’d be able to recover the deposit and also have contractual remedies against them in the court to seek compensation sometimes forcing them to sell but this wouldn’t be applicable to reclaiming any cost prior to the official exchange date.