Major accident averted