This has the odd quirk related to networkQueue()
Fixed the bug

running was false when it was checked in networkQueue(), so the thread was
ending early.
Added debug output