Leaving a job, or being asked to leave, is stressful. Knowing the basic rules helps you protect your rights and your final pay. If you resign Resi…