stop selected threads functionality