remove set_logname. not used.
semi-fix global logging shutdown ordering