Added cursors closing