closing sync client