finish train-client