treat IOException on directory deletion