When Mark Cuban sold his first tech company and became a millionaire, he tried to make sure he could live on his newfound money for "a long time," he says.