Keep policy resolver cleanup in a local variable so explicit error returns cannot clear it before deferred cleanup runs. This prevents remote policy progress writers from outliving the build printer. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>