Modernize + improvements
Using Host Thread management
Fix many mach_port leaks.