Fix cleanup done by alert agent.