When you took out the foreign loan, did the Spanish bank look for your payslip/P60 or proof of earnings?
Why would they want these items if not to satisfy themselves that you could afford to repay the loan in the event of things not working out as you planned.
I used to think that if you took out mortgage indemnity, that you were covered in the event of you defaulting on the loan, and that the insurance company had to take the hit, but the attached link seems to suggest otherwise.
[broken link removed]
The article refers to the UK, but I am sure that it will equally apply throught Europe. Basically, if you default on a loan, the insurance company will pay it off, but they will be entitled to come after you for the amount owed. They may get a judgement mortgage against your home for the money owed.
I would also imagine that they would not pursue you themselves, they would instead sell your loan on to a specialist collection agency.
Murt