threadhal: handle socket disconnection gracefully

Thread hal exit the process when receiving socket disconnection. This
patch is to change the behavior to handle this connection gracefully.

Bug: 368867685
Test: atest VtsHalThreadNetworkTargetTest
Test: manual
Change-Id: I04a9b00784c4c4beb4dad97d080532a3052be05a
2 files changed