The boss of California's doomed $231 billion bullet train project has thrown in the towel.