Added socket listening to message handler code, individual per-client threads