Use HANDLE-CLEANUP generic function instead of circular-referencing code in loop-exit-walk-cb.