wrap rmtree in try/except