Manager IO thread closes socket

Change-Id: I2f4fe46dfe7bb3da2802d438c430aeb1bb90a966
Signed-off-by: TanelDettenborn <tanel.dettenborn@gmail.com>