Two out of five chief executive officers fail in the role within their first 18 months and cost, on average, $6 million to $18 million to replace. Yet, nearly 39 percent of companies have zero viable internal candidates for the role. Here are five steps to ensure a smooth transition.