This chapter shall not apply in any case of casualty, unavoidable accident, or act of God; nor where the delay was the result of a cause not known to, and which could not have been foreseen by, the railroad corporation, or its officer or agent in charge of a trainman at the time the trainman left a terminal. This chapter shall not apply to the crews of wrecking, or relief trains.