Propagate the callback for cursor.close