implemented terminating sync client
Signed-off-by: prassee <prassee>