fix leaking client-data caused by race-condidion on remote close