catch rmtree failure