Multithreading is complete, stable as long as you enter a port number as a param. Otherwise it seg faults. I can add a check to fail fast.