Disconnect sockets if backend is not connected