closing scanner a buffer reader