Threadpool pointer won't use unique_ptr externally. That makes everything crashed, so it's changed