Move cleanup of connections and listeners into methods on netManager