For tech founders like Elon Musk and Jack Dorsey, it took a couple tries before they launched their massively successful companies.