Removed cursor creation and closing debugging messages.
Set the open cursors array to nil if it becomes empty.

This will allow the empty array to be garbage collected if it is no
longer needed.