carrying back second

when selling your own propert and you carry back some of the financing what do you do to get the house back if they cant pay you. obviously you know they are in trouble and cant pay, is there anything you can do at the beginning at the agreement that if they cant afford to pay on the second then you take over their home with the new financing that they brought in and take it over sub 2