Move connection_good into control flow
Move connection_good into control flow

From review comments

advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp,advancedtelematic/sota_client_cpp,advancedtelematic/aktualizr