This looks like the usage pattern you're using with "poll job status" is causing port leaks. Could you share the code snip with us so that we can have a local retry?
And an appropriate approach on "poll job status" is to: Register Job State Change Event + Polling (more than 2 seconds, for example, if there is no event get for the lastest 3 minutes), thus to lower the system load.
Please also share the exact HPC Pack version you're using.
Qiufang Shi