I am using the ec2-plugin on jenkins to autoscale windows slaves. When these slaves are created, the plugin starts the input-copy and output-copy threads(Class WindowsProcess). However, the input copy threads threads do not die even when the slave is terminated from the AWS console or by the plugin itself. The threads keep utilizing the Jenkins CPU and eventually stress it enough to cause Jenkins master to crash.
These threads can be seen under <JENKINS_URL>/monitoring?part=threads