Possible fix for getting the "connected" modal after connection fails