add try...except in rm file