Once the arrangement was outed in public, the booming company’s founder knew he had to move fast to avoid reputation damage.