cleaning up the httpconnection