close the reader before updating