The motorman has to move from the back to front, if he's staying on. Or he's off and someone else is taking over. So yeah they're there for at least like 10min.
Or the train is being removed from service. That's not really going to happen in the middle of the night but definitely happens during times when they are decreasing service (after rush hour, after like 11pn)