In the US, this can be done by a title & escrow service. They hold the deposit money (assuming there is some, which is normal), and then at closing they will do all of the above, as well as receiving and distributing funds from the buyer/mortgage company.