You don’t have to learn the hard way. Just read what these executives did, and don’t imitate them.