stop discovering after it was finished