Add try-catch around shutil.rmtree