Cannot contact test: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@246c2d85:test": Remote call on test failed. The channel is closing down or has closed down

Hi All,
I have setup my Jenkins agent agent as a windows service on a windows machine, I have exposed my agent as a web socket. Getting the below error during the execution of the job, this is a random connection issue. Please help me resolve this issue.

Cannot contact test: hudson.remoting.ChannelClosedException: Channel “hudson.remoting.Channel@246c2d85:test”: Remote call on test failed. The channel is closing down or has closed down

Regards,

A