One thing that is nice about computer science, perhaps as compared the natural sciences, is that a Ph.D. is absolutely a valuable industry degree. Just look at some of the best examples: Jeff Dean, Sanjay Ghemawat to name two. Many modern companies in the computer industry - though not all - value Ph.D.s and actively try to hire them.