client disconnection race condition partialy fixed