Close PG cursors when we're done with them.