agent: leave inSync until the defer runs