I have worker threads and a master thread, the master thread is linked to the UI and can ask the workers to stop working. My threads run an "infinite" loop t