Elon Musk admits Tesla was weeks from dying earlier in the year