Worker thread that runs main loops. Test cases for nodechecker, worker, and udp_listener start/stop