Scenes of employees impulsively quitting their jobs might be great for fiction, but in reality, it's wise to think carefully before walking out the door of your workplace in a foreign country. Laws vary from one country to another, and the status of a foreign employee can quickly become precarious, especially if holding a temporary work permit. From contracts and visas to unemployment benefits, here's an overview of what you should keep in mind to leave your job safely.