close unused cursor