Fix crash when websocket close by server side. send an error message to UI when libwebsocket_client_connect() return nullptr