Properly join() worker threads on shutdown().