It's a hard problem. I think the best way to deal with abandoned houses would be for the municipality to forcibly auction them (once they are left empty for some time) and keep the funds acquired by the sale (minus the costs) invested into bonds or something and ready to reimburse owner if he shows up.