Cash crisis threat to rail plan