[fix] client close logic and test simultaniuse stuff