1031 exchange is possible if the qualified intermediary is involved in the exchange, and all the proceeds of the relinquished property are directly deposited into the escrow account handled by the third party. Once the amount is touched, then you disqualify for 1031 exchange.