In most cases it means the server went down rather than anything on your end. The game loses the thing it was talking to and shuts the session.
Nothing needs fixing on your side; wait a while and try reconnecting once the server is back.