fixed threadpoolserver, client connection needs to be terminated when exception occurred in handleRequest