close http server after cli testcase.