The RegisterCursorToCloseAfterRun method tells Stonefield Query to close a cursor at the end of a report run. This is used when you have a script that creates a cached result set and you want it closed at the end of the report run so the next run uses current data.
RegisterCursorToCloseAfterRun(CursorName as String)
The name of the cursor to close.
See http://blog.stonefieldquery.com/2015/02/improving-performance-of-calculated_12.html for an example.