Best way to flush engine after rocker arm failure?

My question would why did the bolts back off???..and is it going to happen again??..

Exactly this ^^^^^^^ Cleaning it up is good and all, but "MY" big worry would be WHY did it do it? You need to solve that mystery before it goes back together.