shutdown added, but memleaks and data race in test_workqueue