The attackers 'very nearly succeeded' in killing Mr Allen, the court heard.