CALCITE-352. Throw exception if next() is called after close()