General David Petraeus hands over command