Improved logging in case both connectViaCliPort and connectViaHttp fail.