I have noticed, that level crossings close and open, when train is very far away from it. That is unrealistic, because in real life level crossings close when train is approx. km far it or even closer. And they should open right after train has passed it.