if (!this.connManagerShared) {
if (closeablesCopy == null) {
closeablesCopy = new ArrayList<Closeable>(1);
}
final HttpClientConnectionManager cm = connManagerCopy;
closeablesCopy.add(new Closeable() {
@Override
public void close() throws IOException {
cm.shutdown();
}