refactor for threading

new line for m_net->stop().