[sr-dev] git:master:4f6a2686: topoh: reorder conditions for safety of cleaning on error