when you destroy rail crossings (to upgrade them) and the vehicle depot is "offline" you are loosing trucks!
the trucks (probably already on route) will drive to the crossing and then disappear including their load.
i'd say they should stop and look for another route or there should be a warning