Shutdown the thread pool when killing the client