What events will cause an S election to terminate? What wouldyou recommend S corporations do to plan

What events will cause an S election to terminate? What wouldyou recommend S corporations do to plan for an orderly terminationof an S election?