Bot gets disconnected due to "An established connection was aborted by the software in your host machine"

Based on the error message, are you using c#? One solution would be to use async wait for data so it instantly pulls it off the queue, doesn’t use 100% cpu, and doesn’t require Thread.Sleep()