The Giants are ditching the self-driving car company after a series of accidents and a statewide shutdown of its services