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