Network Rail had '25 minutes to stop train' which killed ex-