added sending to servers about terminate message.
fixed sendAll + recvAll