Failed to connect to swarm when lightbuilding

Hey,it shows “failed to connect to swarm” when I tried lightbuild. And i find the swarm agent is actually running when lightbuilding but after a while it just disappear,looks like a crach. I try to open the swarmagent.exe in DotNet and it seems it will crash after this log message. How can I fix it?