Cleanup for new agent startup.