Java SDK HttpClient connection pool not closing

Getting java.net.SocketTimeoutException after 50 concurrent requests using PureCloudPlatformClientV2. The default ApacheHttpClient seems to hold connections open indefinitely. Is there a way to inject a PoolingHttpClientConnectionManager with a max-per-route limit into the builder? Current setup:

PureCloudPlatformClientV2 client = new PureCloudPlatformClientV2.Builder()
 .withHttpClient(new ApacheHttpClient())
 .build();