SET GLOBAL DEBUG="+d,wait_for_threads_in_pre_dd_shutdown";
# restart
SET GLOBAL DEBUG="+d,threads_wait_on_cleanup";