Manageconnection

Allow setting up a connection monitor to periodically close idle connections maintained by HttpClient to avoid connection leaks.