Tesla CEO Elon Musk said the electric sedan and SUV that have been flagships for a decade-plus will soon end production.