If no error code comes with it, the usual fix is simply logging back in. The disconnect is often momentary rather than a sign of anything wrong on your end.
Two other causes are worth ruling out: the server itself may have crashed, which resolves on its own, or your connection may be too slow or unstable to hold the handshake. A wired connection helps in that second case.