Don't loop forever if not connected.