yes you are doing the right thing. A marriage is friendship. If you feel threatened in a friendship wouldn't you end it. As for your male friend I think that was the best thing that both of you could have done for the time being.I wish the best of luck to you.