title: java.lang.IllegalStateException: Manager is shut down exception from DefaultHttpClient
body: <p>I am doing a HttpPost with a DefaultHttpClient instance.and consuming it after getting response.</p>
  
  <p>As follows. (It is a runtime exception)</p>
  
  <pre><code>httpResponse =  m_httpClient.execute(postRequest);
  HttpEntity entity = httpResponse.getEntity();
  
  if (entity != null) {
  }
  EntityUtils.consume(entity);
  </code></pre>
  
  <p>Still I am getting exception as,</p>
  
  <pre><code>java.lang.IllegalStateException: Manager is shut down.
          at org.apache.http.impl.conn.SingleClientConnManager.assertStillUp(SingleClientConnManager.java:175)
          at org.apache.http.impl.conn.SingleClientConnManager.getConnection(SingleClientConnManager.java:209)
          at org.apache.http.impl.conn.SingleClientConnManager$1.getConnection(SingleClientConnManager.java:190)
          at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:391)
          at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
          at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
          at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
          at com.pixalate.etl.adserver.appnexus.api.AppNexusApiManager.executeRequest(AppNexusApiManager.java:374)
  </code></pre>