fixed stop_nodes routine for mgmt stop last