Closed scanner after reading + deleted unnecessary tags