message: add check for destructor in order to avoid segfault
diff: @@ -201,8 +201,12 @@ aditof::Status EepromToolController::writeFile(char const* filename, const std::
  }
  EepromToolController::~EepromToolController() {
  + if (m_eeprom){
  m_eeprom->close();
  + }
  + if (m_device){
  m_device->stop();
  + }
  delete m_system;
  }
  