[#2310] Fix executeReactor to wait for threadpool.