Checks that cursor is closed