Commit on connections after closing cursors