That's right, they'll be refunded as you're not cooling off, but exiting the contract due to one of the requirements not being fulfilled.
As above, this doesn't really have anything to do with cooling off. Any solicitor/conveyancer that's worth their money should put a clause into the contract...