com_recv_msg detect closed socket

Change-Id: I4daa16811a8599670da9ab714f16d3c8c6bce1b3
Signed-off-by: TanelDettenborn <tanel.dettenborn@intel.com>