Stop socket client only when tx thread finishes.
Stop socket client only when tx thread finishes.

Change-Id: I6e5298d729762c61b5ac79519ae282a9a17c5dd5

google/aiyprojects-raspbian,google/aiyprojects-raspbian,google/aiyprojects-raspbian,google/aiyprojects-raspbian,google/aiyprojects-raspbian