[feat] add close method for http agent