Sometimes, the light at the end of the tunnel is not an oncoming train. But however certain you are that it's not an oncoming train, if the rails start vibrating and singing, RUN LIKE HELL AND DON'T STOP TO LOOK BEHIND YOU.
(And if you can't run as fast as a freight? ...Well, sucks to be you, doesn't it?)