I had the same thing happen at about 19 weeks and it is VERY painful. The one thing I kept reminding myself is that the little one I lost was not healthy and I would never want my dear baby to suffer in life. I was happier that my baby got to spend perfect days with God instead of suffering days here on earth. It doesn't mean that I don't still worry or feel sad that I lost that baby, I just try to remember that there is a bigger plan and my baby is happy now.
I have since had another baby girl and am pregnant again. I must say, I am as always quite concerned but continue to hope for the best. I focus every day on the miracle I have inside me and remember that there is no benefit in worrying about something that has not happened and probably won't happen. It will only make me feel bad and this baby can feel that too.
As hard as it is, just try to focus on the good and know that regardless of what happens, only work on what you CAN control, not what you CANNOT.
Good luck to you, and enjoy, you only have a few short opportunities in life to enjoy the beauty of pregnancy, don't waist it worrying. = )