When you play with AI, the game ends automatically when the other human leaves. I think it should end after your turn or when it reaches the human player again. Twice I have had players purposely leave on my turn when I had 12 points just so I could not win.
Thanks for the feedback. I forwarded it to our developers. You have a really good point there