Release the cursor device