clean up cursors