Close the cursor.