I'd say it wasn't really his fault for proceeding when the first gates opened. But as soon as the second gates started to close, I'd have just kept going. Even if he chose to stop, he should at least have leapt out of the vehicle and stood well clear. If your van is at risk of being hit, it's safer that you aren't in it. In summary, if you're on railway tracks then you should get off quickly, even if it means breaking the gates and/or damaging your vehicle