title: Threading issue (chase your own tail)
body: <p>There is <code>ConnectionManager</code> which waits for incoming connections. For each incoming connection it creates a <code>Connection</code> instance which handles the inbound and outbound traffic on this connection. Each <code>Connection</code> has a <code>Watchdog</code> which handles "bad connection" conditions and calls registered "Listerners". One "Listener" is the <code>ConnectionManager</code> which closes the connection and deletes the <code>Connection</code> instance which in turn deletes the corresponding Watchdog.</p>
  
  <p>Wait. A. Minute.</p>
  
  <p>The <code>Watchdog</code> calls the <code>ConnectionManager</code> which deletes the <code>Connection</code> which deletes the <code>Watchdog</code>? The Watchdog chases its own tail.</p>
  
  <p>I am completly blocked. How do I resolve this?</p>
  
  <hr>
  
  <p><strong>Solution</strong>: I will make the Listener thingy asynchronous, altough I don't know yet how to do that without too much pain. The <code>Watchdog</code> doesn't know about the <code>ConnectionManager</code>. It is fairly generic. Also the Win32-Thread-API doesn't have something like "join", so I might need to roll my own with <code>GetExitCodeThread()</code> and <code>STILL_ACTIVE</code>...</p>
  
  <p>Thanks, guys.</p>