Fix issues with open connections / clients

* Use 1 dispatch.Http instance at top level
* Add shutdown and GC hook