I heard about this, To be honest with you that never happened to me while using my mac,
But when i'm at home using my other PC It happens from a while to another, No idea why this happening but i'm so sure that it's something about the server itself, Same thing happens with my brother irl, Client close random times.
Get a better internet connection.
It's not something relate to the internet connections