Reversing the order ensures that any render tasks that finish after the cancel request will find the cache already invalidated, preventing stale LUT-processed frames from being written back and shown in the viewer.