title: akka http client system.shutdown() produce "Outgoing request stream error (akka.stream.AbruptTerminationException)" when using https
body: <p>Hi the following code works as expected.</p>
  
  <pre><code>implicit val system = ActorSystem()
  implicit val materializer = ActorMaterializer()
  
  import system.dispatcher
  
  val request = HttpRequest(uri = "http://www.google.com")
  
  Http.get(system).singleRequest(request).map(_.entity.dataBytes.runWith(Sink.ignore))
    .onComplete { _ =&gt;
      println("shutting down actor system...")
      system.terminate()
    }
  </code></pre>
  
  <p>However, if I change <a href="http://www.google.com" rel="noreferrer">http://www.google.com</a> to <a href="https://www.google.com" rel="noreferrer">https://www.google.com</a> like the following:</p>
  
  <pre><code>implicit val system = ActorSystem()
  implicit val materializer = ActorMaterializer()
  
  import system.dispatcher
  
  val request = HttpRequest(uri = "https://www.google.com")
  
  Http.get(system).singleRequest(request).map(_.entity.dataBytes.runWith(Sink.ignore))
    .onComplete { _ =&gt;
      println("shutting down actor system...")
      system.terminate()
    }
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <pre><code>shutting down actor system...
  [ERROR] [02/11/2017 13:13:08.929] [default-akka.actor.default-dispatcher-4] [akka.actor.ActorSystemImpl(default)] Outgoing request stream error (akka.stream.AbruptTerminationException)
  </code></pre>
  
  <p>Anyone knows why https produces above error and how can I fix it?</p>