Talk to a Lawyer. Take Notes. Sit Down With HR. Don't Touch Anything Confidential. Be Honest When You Resign. Give 100 Percent Until the End. Learn From the Experience and Move On.