The correct course of action is stuffing up the air intake to suffocate the combustion, if this is still a viable option. Otherwise, depart from the vehicle and be ready to call the fire department.
I should have done that, hoping to stall the engine. I panicked and really didn’t know what to do. The noise and MASSIVE cloud of black smoke pouring out the back were terrifying. Not a great first drive after an engine swap.