cleanup work for httpclient