close pending sockets on threadpool shutdown