fixed server exit, client also exit