You’ll loan money to the school’s legal entity. If the founder passes off the school to another person, the school would still be responsible for repaying the loan to you. If the school closes before repaying the loan, the loan would be in default. At that point in time, you may go through the appropriate legal channels to claim remaining assets and regain as much of the outstanding loan as possible.