It took freaking Omnicrom to plot-damage Optimus out of existence, but it was also done during the movie, which is about as good as the rest of the Transformers series put together.
Also, Optimus Prime "got better" later on in the TV series, in the same sense in which Captain Sheriden "got better."