setting message sending to be from client only, corrected bug which left a socket open