> What must be done in that case?
I don't think there is a simple answer to that.
What would be the worst case scenario ? Do you own your house ? Do you have enough savings to handle a few months without income ? Can you get unemployment benefits in your country ?
I know that in Europe even if you fuck up big time you usually won't en up in a bad situation (job security, unemployment benefits, social welfare, &c.)