FIX deleteLocalDirectory if exception