In my case, at 40, somebody fully invested in the market at that age would be fully recovered by now in their late 50's, especially after being able to buy low with new investments on the way back up.
Regardless, if that is a risk you are afraid of, just be in bonds/money market/etc. My point is timing when to jump off is foolhardy.