#552 drain http(s) before shutdown

Resolves #552