make sure we don't leak ev_loop or dmconfig socket memory even on unclean exit
make sure dmctrl list also work on the root element