I want to make a residential lease agreement in NY. Will the landlord be able to break the lease in case he goes bankruptcy, or if the mortgage bank sales his house? How do I prevent it with writing it into the contract?
A lease is more than just a contract; it is a grant of a right of use and possession of real property, albeit temporary.
Provided you comply with the terms of the lease, you have the right of occupancy no matter whether the landlord declares bankruptcy nor whether the home is sold or foreclosed upon by a bank or anyone else.