Install constant voltage lighting using LEDs. Here are 2 different ways
This will give constant intensity lighting from about 5 volts up. Using multiple 1 farad super capacitors in link 2, added to the regulated 5 volt end,the lights will stay on when power is removed for 30 seconds or more. I use five, 1 farad button type,they mount easily to the fish paper linked. I do this on passenger cars and they stay lighted fairly well for up to 2 minutes,gradually fading. They still glow very faintly after an hour or more.
Or
insert a diode string in series to the motor(s). Enough diodes so the trolley motor stalls at 5 volts input. Instead of cutting power completely to the trolley during a stop,leave on 5 volts instead. This can be accomplished with a relay spdt where the 5 volts is inputed into the NO contacts.
The diode string is shown here.
If the trolley only runs one direction you only need a single string. for a trolley 3 amp or even 1 amp diodes are OK sometimes depending on the trolley
Dale H