Find them and chain them to the tracks. End of problem.
If this is in fact the case these dogs need to be put on leashes and chained to the trains.