made server a little more robust - can now successfully deal with disconnecting clients by closing their connection,removing them from connections,  and ending their thread