add --nondaemon option to spanning_tree.cc