Revert "Cursor leakage due to cancellation signal"

This reverts commit 4a13a28db99f4c685b9f9c822ab1e0382e2097be.