recreate the cursor on error optionally, default is true