Properly stop indexer/phash service