Frist you need to find out why you feel like you are losing your husband. Then work on the problems. Take some time for you and your hubby away from outsiders to reconnet. Try going to a marriage workshop. If you want your marrage to work find the way to keep it.
You have to communicate. If you haven't been nice, positive, or loving, show him again why he married you in the first place. Show him how much you love him and put it all out there. Tell him you love him. IF it still goes on after months of trying, you may need outside help, or you could try that now. Good luck! I feel sorry for you!
Do some soul searching, find out if you are bringing what you are capable of bringing to the marriage. If you are bringing all you've got, then look toward him. You can't make him stay in the end, you can only change your own behavior and then when it's all said and done, you know that you've done what you could. Good luck. I feel for you, this can be devastating.