Emergency measures as Beijing gasps