Fixed: main thread dies before others, terminating socket