The money doesn't become yours until it vests, so when you leave the employer, the non-vested money is money you never had. With respect to your 401(k), it simply disappears from your balance; it's not a distribution. You aren't taxed on money that was never yours.