Query cancellation & timeout

appears to be set when the sequence is closed before walking through all the elements.