@@ -0,0 +1,763 @@
+package com.hubspot.singularity;%0A%0Aimport java.io.IOException;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport com.google.inject.Inject;%0A%0Aimport io.dropwizard.lifecycle.Managed;%0Aimport okhttp3.OkHttpClient;%0A%0Apublic class SingularityOkHttpClient extends OkHttpClient implements Managed %7B%0A  private static final Logger LOG = LoggerFactory.getLogger(SingularityOkHttpClient.class);%0A%0A  @Inject%0A  SingularityOkHttpClient() %7B%7D%0A%0A  @Override%0A  public void start() %7B%7D%0A%0A  @Override%0A  public void stop() %7B%0A    dispatcher().executorService().shutdown();%0A    connectionPool().evictAll();%0A    if (cache() != null) %7B%0A      try %7B%0A        cache().delete();%0A      %7D catch (IOException e) %7B%0A        LOG.warn(%22Unable to clean up client cache!%22);%0A      %7D%0A    %7D%0A  %7D%0A%7D%0A

Add managed client which closes underlying resources at shutdown.