in reply to Re^4: Using exitin thread Using exit
you may need to refactor the output ... so that you're sending stuff more frequently .....
without seeing any code, that's probably the best any of us can do ...