There was no freeze or anything. It just closed automatically while I was playing as if I pressed log out, which I did not.
My guess is that your game crashed. I used to get that, now it freezes then crashes after 5-7 seconds. But it's pretty rare that it does for me.