try catch removedirs