[Core] Properly stop the ThreadPoolExecutor and use the ConcRT memory allocator.