argument of host name bug fix and change the methon of subprocess terminate