Clean up the cursor at least