Defend against possible Cursor leaks