closing open Scanner object in TrainPrediction class