stop thread in net_close