Closing cursors in a few of the new category functions.