Union warned Railtrack