Closing cursors.