How can I figure out why my agents are closing?

I’m using Jenkins version 2.426.2 on a Windows server. Java 11.

From time to time I get a ClosedChannel exception with my agents. The Agents are running on Windows 11 on Azure Virtual Machines. It seems like the agents are just shutting down, but I’m struggling to figure out why. If I remote into the agent VM and look at the logs in the remoting directory, it just looks like a normal log showing the agent connecting successfully with the server.

Are there other logs that would be generated by the agent that I can look at? Maybe something in the Event Viewer? I’m at a loss as to why the agents would just stop, and any help to figure out what is happening would be greatly appreciated.