fix bug[1312738]: execute CLI command connect twice will get error