Car almost killed by train