I wouldn't call it luck; it really depends on a lot of factors. If he's a software dev like most people here, then he's in an industry where there's a high demand for his talents, so it's generally not that hard to find a new job. Unfortunately, this is of course not the case for all workers; laid-off coal miners for instance will have a much harder time.