oops: wrong variable in list_foreach_safe
add: subsys shutdown on exit