The ``with`` block explicitly closes the cursor, instead of leaving it to the driver and GC to deal with eventually.