When does a shift end early?

If every scheduled train has left the station, the shift can finish early with results. If time runs out with trains still on station — unranked result (DNF).