CheckRoot : Close the Scanner object