I have seen the second mortgage work on several occasions with bankruptcy/liquidators.
BUT you set it up for commercial reasons and the longer it is setup the better. If you run off and do it once you get a whiff of looming trouble then it is not so good.
Sounds like you need a lawyer...