Qatar's emir leaves in stride, gives son a thriving nation