You get three business days to change your mind
On a refinance of your principal residence, the Truth in Lending Act gives you a right of rescission: three business days after closing, after receiving your notice of the right to cancel and after receiving the material disclosures, in which you can cancel the loan and walk away. The money is not disbursed until that window closes. A purchase mortgage carries no such right, and neither does a refinance of a second home or an investment property.