implement correct network stopping