We include a provision in the contract that protects all parties involved when a court hearing is pending.  The clause will protect you from any liability if for whatever reason you are not declared to have the full right to sell the property.