server crashed

The client crashed during reconnection after power cycle.

code to reproduce

#include <ctime>
#include <string>

#include <fsdetector/agipdctrl/AGIPDCtrlGlobals.h>
#include <fsdetector/core/Utils.h>
#include <fsdetector/agipdctrl/AGIPDCtrlInterface.h>
#include <fsdetector/agipdctrl/AGIPDComm.h>

using namespace AGIPDCtrlNS;
using namespace std;

typedef unique_ptr<AGIPDCtrlInterface> uptr_agipd;

int main(int argc, char *argv[])
{

    const string ip = "10.0.0.3";

    ComConnConfigs c1;
    c1.ip = ip;
    c1.port = 10000;

    MetadataConnConfigs c2;
    c2.ip = ip;
    c2.port = 10010;

    uptr_agipd agipd;

    while(true) {
        cout<<"=============START============="<<endl;
        
        try {
            agipd.reset(new AGIPDCtrlInterface(c1, c2, TRACE));
        } catch(const std::runtime_error& e) {
            cout << "Could not init agipd ctrl" << endl;
            sleep(5);
            continue;
        }
        sleep(1);  
        cout<<"==============END=============="<<endl;
    }
    // done
    return 0;
}