Attempt at handling unread results when trying to close a cursor.