I don't know how things work in the states, but here, a sub-contractor or material supplier can put a "legal mortgage" (Don't know the equivalent term in english) which supersedes any other mortgage, if they don't get paid, even if the main contractor is the one who didn't pay, your property becomes the sub-contractor's collateral.