It happens to a lot of people, from what Ive experienced, its not something you do wrong, the game/client just isn't stable to a point where logging is as easy as GMS yet, lets just say that.
Either that, or your Internet/PC sucks creating some kinds of errors.
If its none of the above, I really don't know.
I know how it can be frustrating, sometimes I open the game, first try and play fine for hours.
The day after, takes me 15 tries to get it running smoothly.