The engine's brakes had failed and had stopped short of falling down into the valley below.
Nopony was injured, but very rightly shaken.
After assessing the damage, they were able to return the train to the tracks and return to service.
This is based on a famous photograph of a steam locomotive hanging precariously over a cliff after its brakes failed in 1901 at the Zig Zag Railway facility in Lithgow, NSW.
[https://www.westernadvocate.com.au/story/6383571/yesterday-today-precipitous-accident-was-worthy-of-a-postcard/](https://www.westernadvocate.com.au/story/6383571/yesterday-today-precipitous-accident-was-worthy-of-a-postcard/)