title: Stopping a Poco::Thread for Unit Tests
body: <h3>Problem</h3>
  <p>I have a UDPlistener application that I need to write a unit test for. This listener continuously listens on a port and is meant to always be running on the product. We use the poco libraries for frameworks not in the standard library.</p>
  <p>Now I need to add it to the unit test application.</p>
  <h3>Curent Solution</h3>
  <p>I thought it would be easiest to implement <code>Poco::Runnable</code> in a class <code>RunApp</code> that runs the application. Then I can create a new <code>Poco::Thread</code> in my unit test to run the <code>RunApp</code> class.</p>
  <p>This works; my listener is running and I can send test messages in the unit test body after the thread is spawned. BUT, I need to stop the listener so other unit tests can run. I added a UDP message that tells the listener to kill itself but this is only used by the unit test and a potential security problem.</p>
  <h3>Question</h3>
  <p>Is there a way to force a <code>Poco::Thread</code> to stop? Or I structuring this unit test wrong? I don't want the listener to run during all the other unit tests.</p>