fixed bug that crashed arke if we closed a managedCursor.