Correct detection of failure to run in a boost tree, and refactor code as a separate set_boost_root function.