Swarm Agent can not be restarted

When I click the “Exit” button on the swarm agent and then do a “build light”, the lighting build hangs at 0%. When I open the swarm agent and look at the log file I get the included picture.
The only way to terminate UE at that point is through the Windows taks manager. If I kill the “SwarmAgent.exe” process in the Windows task manager and try again, I get the same result.
It appears the necessary ports are blocked in NET and can not be freed.

At this point, the only thing that helps is to restart Windows.

The swarm agent is a nice idea, but it is buggy and will stop working sooner or later at which point the base idea to get it fixed to restart it which leads to the above situation.

It would be better if there was a solution in UE to do lighting only on the local machine without involving swarm agent at all in that situation