closing the buffer reader