Added error messages for socket errors on listening threads for the Server. Also made sure that the client would disconnect regardless of how the while loop would terminate. Fixed a syntax error (missing ',') for the rule thread instatiation