closed scanner in prompt method of team