just as the admiral was about to order dex to engage the quantum refractor , a bright blue flash enveloped the apocalypse , violently knocking it off course and causing the immediate blare of several alarm klaxons .