cleanup in ServerClient and AsyncServerClient