When the exchange of contracts takes place, the vendor and purchaser are legally committed to the deal. If the purchaser withdraws at this stage, for whatever reason, they could be pursued. Conversely, the vendor cannot accept a higher offer and if they withdraw the purchaser could claim compensation.
After exchange, a date will be fixed for completion - it usually takes place within four weeks. It can be done sooner, even on the same day if circumstances allow.