I think there are roughly 3 categories of folks who are leaving the service at the senior Capt/junior Maj ranks (or LT/LCDR for the USN side):
1) People who didn't screen for O-4 for their second statutory board in a row
2) People who never wanted to make a career out of it, and this is the most logical time to leave
3) People who are legitimately disgruntled at the service, had originally intended to make this a career, screened for O-4, and are still walking.
There have always been those in the first two categories, and I believe they still make up the largest portion of the receding numbers/bodies. The part the services have been failing to recognize, is the growing numbers of folks in category 3, and that is exactly what should be worrisome. No amount of retention bonus is going to keep them, much less category 2. I think the senior leadership has been slow to realize that the loudest complaints are no longer coming from category 1 (as they always have before), but rather the emerging category 3. There is a significant difference between the two, and the latter group is the one they need to be concerned with. Just my .02