- move clearTimeout(flowTimeoutHandle) into the finally block so it fires
on success, error, and timeout — previously the error path left a live
180s timer that would reject an unreferenced promise (unhandled rejection)
- remove the second removeEnvironmentState call after welcome; the first
call right after the IPC swap already wipes the old environment state
and nothing recreates state under the old env id during reauth/welcome