test: Fix test_is_disconnected and don't stop cli if not connected.