They would need some sort of time limit so that people must be on or off a minute before the train leaves. The doors would close a minute before departing.

Talk about it!