Clean up the RandomForest main.