First off, how will you secure financing while being unemployed? Secondly, if you were to refinance then file for bankruptcy, your bankruptcy would most likely be denied. From what I understand, you're not suppose to have any major financial purchases or expenditures at least 180 days prior to filing.
Discuss this and all your questions with your attorney. S/he best knows your situation and what can/cannot be done.

