When I have a close call, I thank that it did not get worse and then keep a reminder, to figure out how I can prevent these things from happening in the future. Finally, after a few weeks, (procrastination), I get to the solution. Still never remove risk, but getting better at prevention...