Cleaning DirectoryObserve method