Railway accident near miss