The world can learn from its mistakes and begin to prepare for the next outbreak.