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