If there is only one thread, then the threadpool is null and this errors