Close SAM reader before re-querying.