The IRS has a rule, 72(t), that lets you make substantially equal withdrawals from an IRA. If you keep this up for at least 5 years or until past the point where you are 59.5 (whichever comes first), you are not assessed any penalties.
So essentially: You retire, you roll your 401k into an IRA...