BMW tries to turn a corner—and loses its boss