agent: use Grace.Shutdown instead of 't'