Repaired the callback mechanism that is used to track object removal in a session flush.