MasterNode creates a thread, and so does SlaveNode when they connect and these threads don't block