I don't have any loans from bank or other people.

I once express my will of resign to boss(he is expat also),
suddenly he sound very angry, very frightening.
so I said ok I stay.

My worry is that if I submit resign letter,
he might do something to stop me from leaving the country, like refuse to give me exit permits?

(note, I am able pay my own flight ticket.)