Client not closing socket before manager

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