onTrainsLost handler.